<?php
$typename = [
    5   =>  '协会',
    8   =>  '会员',
    20  =>  '名家',
    21  =>  '作品',
    22  =>  '活动',
];
$type = isset($_GET['type'])?$_GET['type']:8;
if(!in_array($type,array_keys($typename))){
    $type = 5;
}
$now_title = $typename[$type]; require_once("head.php");?>

    <main class="m-0">
    <div id="in_box1" class="py-5 py-xl-6">
    <div class="main position-relative">
    <div class="container px-md-0 bg-white position-relative" style="z-index: 1;">
        <div class="d-flex flex-column flex-lg-row">

            <?php require_once("left.php");
            ?>
            <div class="flex-grow-1 ml-lg-5 mt-5 mt-lg-0" id="right">
                <div class="title border-bottom py-4 mb-5 position-relative">
                    <span class="fs-24 fs-xl-30 d-lg-inline-block align-middle"><?php echo $typename[$type]; ?></span>
                    <span class="fs-16 d-none d-xl-inline-block align-middle ml-3 op6"></span>
                    <span class="position-absolute mt-4 mr-4 op6 d-none d-sm-block fs-12 fs-md-14" style="top: 0; right: 0;">
                            <i class="iconfont icondizhitianchong- mr-2"></i>当前位置是：<a href="/">首页</a>
                        &gt;
                        <a href="/product.php?type=<?php echo  $type ?>"> <?php echo  $typename[$type]; ?></a>
                    </span>
                </div>
                <ul>
                     <?php
                $sql = "SELECT * FROM `#@__infolist` WHERE classid=$type  AND delstate='' AND checkinfo=true ORDER BY orderid DESC";
                $dopage->GetPage($sql,20);
                  while($row = $dosql->GetArray())
				{
                ?>
                    <li class="pb-3 border-bottom mb-4 mb-lg-5 wow fadeIn" data-wow-delay=".1s">
                        <a href="/newsshow.php?id=<?php echo $row['id']; ?>" title="<?php echo $row['title']; ?>" class="d-flex rounded-lg hover">
                            <!--                                    <div class="imgbox imgbox_4_3 overflow-hidden ImgScale bg-light" style="width: 240px; max-width: 40%;">-->
                            <!--                                        <img class="img-fluid" src="--><?php //echo $row['picurl']; ?><!--" alt="--><?php //echo $row['title']; ?><!--">-->
                            <!--                                    </div>-->
                            <div class="p-3 pl-4 p-lg-4 flex-grow-1" style="width: 0;">
                                <div class="text-truncate fs-15 mb-3 mb-lg-4"><b><?php echo $row['title']; ?></b></div>
                                <p class="fs-lg-14 lh-18 op6 mb-lg-4 text-truncate cont"><?php echo $row['description']?></p>
                                <p class="pt-3"><span class="op6 lh-20"><?php echo date('Y-m-d',$row['posttime']) ?></span> <span class="btn text-white float-right fs-12" style="background-color: #f60;">查看更多</span></p>
                            </div>
                        </a>
                    </li>
                    <?php }?>

                </ul>
                <?php echo $dopage->GetList(); ?>
                <br/>
                <br/>
            </div>
        </div>
    </div>
    </div>
    </div>

<?php require_once("footer.php");?>